Skip to content

Conversation

julienschmidt
Copy link
Member

Fixes #59

func (nt *NullTime) Scan(value interface{}) (err error) {
if value == nil {
nt.Time, nt.Valid = time.Time{}, false
} else {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

return nil, no else? Seems more goish

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh wait... :D

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@arnehormann
Copy link
Member

LGTM

julienschmidt added a commit that referenced this pull request Apr 25, 2013
@julienschmidt julienschmidt merged commit 73f5a73 into master Apr 25, 2013
@julienschmidt julienschmidt deleted the nulltime branch April 25, 2013 22:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

unsupported driver -> Scan pair: <nil> -> *time.Time
2 participants